//
//  FinderViewModel.h
//  ForYourBeauty
//
//  Created by Kelly xu on 2019/6/3.
//  Copyright © 2019 changrenTech. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "FinderCatListModel.h"
#import "SysDicModel.h"
#import "FinderListModel.h"
#import "FinderDetailModel.h"
#import "BannerListModel.h"
NS_ASSUME_NONNULL_BEGIN

@interface FinderViewModel : NSObject

/**
 获取文章分类列表

 @param cmp 成功回调
 */
-(void)fetchFinderCatWithCmp:(void(^)(NSMutableArray *catList))cmp;

/**
 获取banner列表

 @param cmp 成功回调
 */
-(void)fetchBannerList:(void(^)(NSMutableArray *bannerList))cmp;
/**
 获取文章列表
 @param typeCode 文章类型
 @param cmp 成功回调
 */
-(void)fetchFinderList:(NSString*)typeCode keyWord:(NSString*)keyword cmp:(void(^)(NSMutableArray *finderList))cmp;

/**
 获取文章详情

 @param finderId 文章id
 @param cmp 成功回调
 */
-(void)fetchFinderDetail:(NSString*)finderId cmp:(void(^)(FinderDetailModel *detailModel))cmp;

/**
 添加收藏

 @param articleId 文章id
 @param cmp 成功回调
 */
-(void)addToLikeList:(NSString*)articleId cmp:(void(^)())cmp;

/**
 删除收藏

 @param articleId 文章id
 @param cmp 成功回调
 */
-(void)delFromLikeList:(NSString*)articleId cmp:(void(^)())cmp;

/**
 点赞

 @param articleId 文章id
 @param cmp 成功回调
 */
-(void)addToTopList:(NSString*)articleId cmp:(void(^)())cmp;

/**
 取消点赞

 @param articleId 文章id
 @param cmp 成功回调
 */
-(void)delFromTopList:(NSString*)articleId cmp:(void(^)())cmp;
@end

NS_ASSUME_NONNULL_END
